package javaagent;

import javaagent.jdbc.MySqlDriverAgent;

import java.lang.instrument.Instrumentation;

/**
 * @author ：zzs
 * @version : 1.0
 * @date ：Created in 2022/3/11 20:32
 * @description：
 */
public class Agent {

    public static void premain(String arg, Instrumentation instrumentation) throws Exception {
//        instrumentation.addTransformer(new MyBatisAgent());
//        instrumentation.addTransformer(new MyBatisAgent2());
        // 进行url的静态拦截
//        HttpProxy2.registerProtocol();
       instrumentation.addTransformer(new MySqlDriverAgent());
    }
}
